--TEST--
Check for jsonschema vali string
--SKIPIF--

<?php
if (!extension_loaded("jsonschema")) {
    print "skip";
}
?>
--FILE--
<?php
echo 'string', PHP_EOL;
$value = 'teststring';
$jsonSchema = new JsonSchema(json_encode($value));

echo assert($jsonSchema->validate('{"type":"string","format":"regex","pattern":"\/^[a-z.]+$\/i","minLength":0,"maxLength":2147483647}')), PHP_EOL;
?>
--EXPECT--
1